package com.zhao.serviceimpl;

import java.util.Date;

import org.springframework.stereotype.Service;

import com.zhao.calendar.SunAndMoon;
import com.zhao.model.GetSetData;
import com.zhao.model.Lnglat;
import com.zhao.service.DubboService;

@Service
public class DubboServiceImpl implements DubboService{

	@Override
	public GetSetData getData(Lnglat lnglat) {
		double lng = lnglat.getLongitude();
		double lat = lnglat.getLatitude();
		Date date = new Date();
		GetSetData data = SunAndMoon.getGetSetData(lat,lng, date);
		return data ;
	}

}
